package com.kd.eb.service;

import com.kd.eb.mapper.EbProductCategoryMapper;
import com.kd.eb.model.EbProductCategory;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service

public class ProductCategoryService {
    @Resource
    private EbProductCategoryMapper ebProductCategoryMapper;
    //按id查类
    public EbProductCategory list(int pid){
        EbProductCategory ebProductCategory = ebProductCategoryMapper.selectById(pid);
        return ebProductCategory;
    }
}
